﻿using SqlSugar;
using System;

namespace Neto.Core.Entities;
/// <summary>
/// 敏感词管理表
/// </summary>
[SugarTable("Sys_SensitiveWord", "敏感词管理表",false)]
[SugarIndex("Index_{table}_Word", nameof(Word), OrderByType.Asc)]
public class SysSensitiveWord: SsFullEntityNoIdentity
{

    /// <summary>
    /// 敏感词内容 (唯一索引)
    /// </summary>
    [SugarColumn(ColumnDescription = "敏感词内容")]
    public string Word { get; set; }

    /// <summary>
    /// 敏感词分类
    /// </summary>
    [SugarColumn(ColumnDescription = "敏感词分类")]
    public string Category { get; set; } 

    /// <summary>
    ///     是否启用
    /// </summary>
    [SugarColumn(ColumnDescription = "是否启用")]
    public bool IsEnable { get; set; }

    /// <summary>
    /// 备注信息
    /// </summary>
    [SugarColumn(ColumnDescription = "备注信息")]
    public string Remark { get; set; }

    /// <summary>
    /// 匹配模式 (0=精确匹配, 1=模糊匹配)
    /// </summary>
    [SugarColumn(ColumnDescription = "匹配模式(0精确,1模糊)")]
    public int MatchMode { get; set; } 

    /// <summary>
    /// 敏感词等级 (1=低, 2=中, 3=高)
    /// </summary>
    [SugarColumn(ColumnDescription = "敏感词等级(1低,2中,3高)")]
    public int SeverityLevel { get; set; }
}